package com.srit.vgt.controller;

import com.alibaba.fastjson.JSONObject;
import com.srit.vgt.common.response.Response;
import com.srit.vgt.service.IServerPointService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/upload")
public class ServerPoint {

    @Autowired
    IServerPointService serverPointService;

    @PostMapping("/all")
    public Response uploadBase(@RequestBody JSONObject all) {
        return Response.success(serverPointService.uploadBase(all));
    }
}
